# Author:lzhan  Date:2020/3/17
import requests

url='https://sports.163.com/20/0317/07/F7TE5P8000058781.html'

response=requests.get(url)

# response.text 就是网页源代码

# 网页源代码的编码是什么？ GBK

# 当前项目中所有文件的编码是什么？ UTF-8
t=response.text

print(response.encoding)

response.encoding=response.apparent_encoding

print(response.encoding)

